﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using DTO;
using BUS;

namespace DoAn
{
    public partial class ThongKeBan : Form
    {
        PhieuXuatHangBUS pxh;

        public ThongKeBan()
        {
            pxh = new PhieuXuatHangBUS();
            InitializeComponent();
        }

        private void button1_Click(object sender, EventArgs e)
        {
            dataGridView1.Rows[0].Cells[0].Value = pxh.ThongKeBan(comboBox1.SelectedValue.ToString(), dateTimePicker1.Value, dateTimePicker2.Value);
        }

        private void ThongKeBan_Load(object sender, EventArgs e)
        {
            HangHoaBUS hanghoa = new HangHoaBUS();
            comboBox1.DataSource = hanghoa.LayHangHoa();
            comboBox1.DisplayMember = "TenHang";
            comboBox1.ValueMember = "MaHang";
        }

        private void label2_Click(object sender, EventArgs e)
        {

        }

        private void label1_Click(object sender, EventArgs e)
        {

        }
    }
}
